1. /* siodiv.cpp by K.Tsuru */
  2. // function ID = 404 BRADIX
  3. /**********************************
  4. SInteger class
  5. It provides a division operator m/n.
  6. ***********************************/
  7. #ifndef SN_H
  8. #include "sn.h"
  9. #endif
  10. SInteger operator/(const SInteger& m, const SInteger& n){
  11. Ldiv_t r; //The type is SLong.
  12. SInteger q;
  13. IIDiv(m, n, r, 0);
  14. q = r.quot;
  15. return q; //"return r.quot;" is an error
  16. //cannot convert SLong --> SInteger
  17. }

siodiv.cpp : last modifiled at 2015/12/14 16:16:20(457 bytes)
created at 2016/04/25 14:53:17
The creation time of this html file is 2017/10/25 11:09:45 (Wed Oct 25 11:09:45 2017).